package agdsubversion;

public class ClassA {
    private int att1;
    private String att2;
    
    
    public ClassA() {
        super();
    }


    public void setAtt1(int att1) {
        this.att1 = att1;
    }

    public int getAtt1() {
        return att1;
    }

    public void setAtt2(String att2) {
        this.att2 = att2;
    }

    public String getAtt2() {
        return att2;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClassA)) {
            return false;
        }
        final ClassA other = (ClassA) object;
        if (att1 != other.att1) {
            return false;
        }
        if (!(att2 == null ? other.att2 == null : att2.equals(other.att2))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + att1;
        result = PRIME * result + ((att2 == null) ? 0 : att2.hashCode());
        return result;
    }
    
    public String toString(){
        return "Atributo 1: "+att1 + "Atributo 2: "+att2;
        
        
        }

}
